//
//  TLCategoryNovelTableViewCell.m
//  WXReader
//
//  Created by huaya on 2025/3/22.
//  Copyright © 2025 Andrew. All rights reserved.
//

#import "TLCategoryNovelTableViewCell.h"

@interface TLCategoryNovelTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *bookNameLab;
@property (weak, nonatomic) IBOutlet UILabel *authorLab;
@property (weak, nonatomic) IBOutlet UILabel *descLab;
@property (weak, nonatomic) IBOutlet UIImageView *bookImgView;
@property (weak, nonatomic) IBOutlet UILabel *viewNumLab;

@end

@implementation TLCategoryNovelTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.bookImgView.layer.masksToBounds = YES;
    self.bookImgView.layer.cornerRadius = 8;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(TLMallChannelModel *)model{
    if (model) {
        _model = model;
        
        _bookNameLab.text = model.worksName;
        
        _descLab.text = model.desc;
        
        _authorLab.text = model.author;
        
        _viewNumLab.text = [NSString stringWithFormat:@"%@",model.viewNum];
        
        [self.bookImgView sd_setImageWithURL:[NSURL URLWithString:model.coverPic]];
        
    }
}
@end
